package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品表
 *
 * @author WeiZiDong
 */
@Table(name = "`goods`")
@Data
@ApiModel("商品表")
public class Goods implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "记录id", example = "1")
    private Long id;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "1556946359031")
    private Date updateTime;
    @Column(name = "`delete_flag`")
    @ApiModelProperty(value = "1:删除，0：未删除", example = "1")
    private Integer deleteFlag;
    @Column(name = "`status_flag`")
    @ApiModelProperty(value = "1:启用，0：禁用", example = "1")
    private Integer statusFlag;
    @Column(name = "`taobao_order_no`")
    @ApiModelProperty(value = "淘宝订单号", example = "1")
    private Long taobaoOrderNo;
    @Column(name = "`mechanism_id`")
    @ApiModelProperty(value = "所属机构ID", example = "1")
    private Long mechanismId;
    @Column(name = "`goods_name`")
    @ApiModelProperty(value = "商品名称", example = "String")
    private String goodsName;
    @Column(name = "`goods_pic`")
    @ApiModelProperty(value = "商品主图", example = "String")
    private String goodsPic;
    @Column(name = "`business_id`")
    @ApiModelProperty(value = "商家ID", example = "1")
    private Long businessId;
    @Column(name = "`business_name`")
    @ApiModelProperty(value = "商家名称", example = "String")
    private String businessName;
    @Column(name = "`goods_thumbnails`")
    @ApiModelProperty(value = "商品小图", example = "String")
    private String goodsThumbnails;
    @Column(name = "`goods_video`")
    @ApiModelProperty(value = "商品小图", example = "String")
    private String goodsVideo;
    @Column(name = "`one_category`")
    @ApiModelProperty(value = "一级类目名称", example = "String")
    private String oneCategory;
    @Column(name = "`goods_price`")
    @ApiModelProperty(value = "商品一口价格", example = "1.0")
    private BigDecimal goodsPrice;
    @Column(name = "`seller_type`")
    @ApiModelProperty(value = "卖家类型：0表示集市，1表示商城", example = "String")
    private String sellerType;
    @Column(name = "`goods_location`")
    @ApiModelProperty(value = "商品归属地", example = "String")
    private String goodsLocation;
    @Column(name = "`goods_url`")
    @ApiModelProperty(value = "商品链接", example = "String")
    private String goodsUrl;
    @Column(name = "`30_sales_volume`")
    @ApiModelProperty(value = "30天销量", example = "1")
    private Integer 30SalesVolume;
    @Column(name = "`leaf_category_name`")
    @ApiModelProperty(value = "叶子类目名称", example = "String")
    private String leafCategoryName;
    @Column(name = "`is_free_shipping`")
    @ApiModelProperty(value = "是否包邮：0不包邮，1包邮", example = "String")
    private String isFreeShipping;
    @Column(name = "`goods_discount_price`")
    @ApiModelProperty(value = "商品折扣接口", example = "1.0")
    private BigDecimal goodsDiscountPrice;
    @Column(name = "`taoke_url`")
    @ApiModelProperty(value = "淘客地址", example = "String")
    private String taokeUrl;
    @Column(name = "`goods_type`")
    @ApiModelProperty(value = "宝贝类型", example = "String")
    private String goodsType;
    @Column(name = "`goods_status`")
    @ApiModelProperty(value = "宝贝状态，0失效，1有效", example = "String")
    private String goodsStatus;
    @Column(name = "`goods_coupon_url`")
    @ApiModelProperty(value = "商品优惠券推广链接", example = "String")
    private String goodsCouponUrl;
    @Column(name = "`coupon_start_time`")
    @ApiModelProperty(value = "优惠卷开始时间", example = "2019-05-05 17:55:31")
    private Date couponStartTime;
    @Column(name = "`coupon_end_time`")
    @ApiModelProperty(value = "优惠卷结束时间", example = "2019-05-05 17:55:31")
    private Date couponEndTime;
    @Column(name = "`coupon_denomination`")
    @ApiModelProperty(value = "优惠卷面额", example = "1")
    private Integer couponDenomination;
    @Column(name = "`coupon_number`")
    @ApiModelProperty(value = "优惠卷数量", example = "1")
    private Integer couponNumber;
    @Column(name = "`coupon_surplus_quantity`")
    @ApiModelProperty(value = "优惠卷数量", example = "1")
    private Integer couponSurplusQuantity;
    @Column(name = "`goods_kb`")
    @ApiModelProperty(value = "商品kB价格", example = "1.0")
    private BigDecimal goodsKb;
    @Column(name = "`goods_recommend_text`")
    @ApiModelProperty(value = "商品推荐文案", example = "String")
    private String goodsRecommendText;
    @Column(name = "`source_force_value`")
    @ApiModelProperty(value = "最高奖励源力值", example = "String")
    private String sourceForceValue;
    @Column(name = "`income ratio`")
    @ApiModelProperty(value = "收入比列举例，取值为20.00，表示比例20.00%", example = "1.0")
    private BigDecimal incomeRatio;
    @Column(name = "`remark`")
    @ApiModelProperty(value = "备注", example = "String")
    private String remark;

    private static final long serialVersionUID = 1L;
}
